package io.binghe.concurrent.executor.state;

/**
 * BLOCKED状态
 * @author binghe
 * @version 1.0.0
 * @description 加锁后不再释放锁。当第二个进程想要获取锁对象就会阻塞
 */
public class BlockedThread implements Runnable {
    @Override
    public void run() {
        synchronized (BlockedThread.class){
            while (true){
                WaitingTime.waitSecond(100);
            }
        }
    }
}
